package com.ccut.bits.security.service.impl;

import com.ccut.bits.model.Patent;
import com.ccut.bits.security.dao.PatentDao;
import com.ccut.bits.security.service.PatentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("patentSerivce")
public class PatentServiceImpl implements PatentService {

    @Autowired
    private PatentDao patentDao;

    @Override
    public List<Patent> getPatentListPage(Patent patent) {
        return patentDao.getPatentListPage(patent);
    }

    @Override
    public void addPatentInfo(Patent patent) {
        patentDao.addPatentInfo(patent);
    }

    @Override
    public void deletePatentById(int id) {
        patentDao.deletePatentById(id);
    }

    @Override
    public Patent getPatentById(int id) {
        return patentDao.getPatentById(id);
    }

    @Override
    public void updatePatentById(Patent patent) {
        patentDao.updatePatentById(patent);
    }
}
